const fs = require('fs')

const writeFile = function(path, content){
    return new Promise((resolve, reject) => {
        fs.writeFile(path, content, (err, data)=>{
            if (err) {
                reject(err)
            }else{
                resolve(true)
            }
        });
    })
}

module.exports = {
    writeFile 
}